import request from '@/utils/request'


// 创建工单
export function create(data) { 
    return request({
      url: '/user_question/create',
      method: 'post',
      data: data
    })
  }
  export function getpage(data) { 
    return request({
      url: '/user_question/query',
      method: 'post',
      data: data
    })
  }
  
  export function qdetail(data) { 
    return request({
      url: '/user_question/ques_detail',
      method: 'post',
      data: data
    })
  }
  
  export function talkdetail(data) { 
    return request({
      url: '/user_question/talk_detail',
      method: 'post',
      data: data
    })
  }
  
  export function talkcreate(data) { 
    return request({
      url: '/user_question/talk_create',
      method: 'post',
      data: data
    })
  }
  export function endq(data) { 
    return request({
      url: '/user_question/terminate',
      method: 'post',
      data: data
    })
  }
  
  export function pick(data) { 
    return request({
      url: '/admin_question/pick',
      method: 'post',
      data: data
    })
  }
  export function pickpage(data) { 
    return request({
      url: '/admin_question/query',
      method: 'post',
      data: data 
    })
  }

  export function adminpage(data) { 
    return request({
      url: '/admin_question/query_mine',
      method: 'post',
      data: data
    })
  }